package mr.ali.videoapp.portal.pay;


import com.github.wxpay.sdk.WXPayConfig;
import java.io.InputStream;

/**
 * @author Administrator
 */
public class WxPayConfig implements WXPayConfig {
   // 小程序ID

   private String appID;
   // 商户号

   private String mchID;
   // API密钥

   private String key;

   public WxPayConfig(String appID, String mchID, String key) {
      this.appID = appID;
      this.mchID = mchID;
      this.key = key;
   }

   @Override
   public String getAppID() {
      return appID;
   }

   @Override
   public String getMchID() {
      return mchID;
   }

   @Override
   public String getKey() {
      return key;
   }

   @Override
   public InputStream getCertStream() {
      // 如果你使用的是证书支付，需要返回证书的输入流
      return null;
   }

   @Override
   public int getHttpConnectTimeoutMs() {
      return 8000;
   }

   @Override
   public int getHttpReadTimeoutMs() {
      return 10000;
   }
}